<?php
namespace Todo\Model\Sys;

class EmailModel extends SysBaseModel
{
    protected $_cache = false;

    protected $_validate = array(
        array('title', 'require', '请输入邮件标题', 1),
        array('to_user', 'require', '请选择收件人', 1),
        array('type', 'require', '请选择邮件类型', 1),
    );

    protected $_auto = array(
        array('add_time', 'time', self::MODEL_INSERT, 'function'),
        array('send_time', 0, self::MODEL_INSERT)
    );
    
}